package cn.edu.seu.ssny.service.impl;

import cn.edu.seu.ssny.dao.IEquipmentDao;
import cn.edu.seu.ssny.dao.IEquipmentTypeDao;
import cn.edu.seu.ssny.dao.support.IBaseDao;
import cn.edu.seu.ssny.entity.Enterprise;
import cn.edu.seu.ssny.entity.Equipment;
import cn.edu.seu.ssny.entity.EquipmentType;
import cn.edu.seu.ssny.entity.Project;
import cn.edu.seu.ssny.service.IDeviceService;
import cn.edu.seu.ssny.service.IEquipmentService;
import cn.edu.seu.ssny.service.IEquipmentTypeService;
import cn.edu.seu.ssny.service.support.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Optional;

/**
 * 设备表
 */
@Service
public class EquipmentTypeServiceImpl extends BaseServiceImpl<EquipmentType, Integer> implements IEquipmentTypeService {

    @Autowired
    private IEquipmentTypeDao equipmentTypeDao;

    @Override
    public IBaseDao<EquipmentType, Integer> getBaseDao() {
        return this.equipmentTypeDao;
    }

    @Override
    public Optional<EquipmentType> findByName(String name)  {
        return equipmentTypeDao.findByName(name);
    }

}